﻿<%@ Page Language="VB" MasterPageFile="~/mstPrincipal.master" AutoEventWireup="false" CodeFile="cli_lista_clientes.aspx.vb" Inherits="clientes_cli_lista_clientes" title="Untitled Page" %>

<%@ Register Src="~/wucSide.ascx" TagName="Opciones" TagPrefix="wuc1" %>

<asp:Content ID="Content2" ContentPlaceHolderID="cphSide" Runat="Server">
    <wuc1:Opciones ID="wucMenuOpciones" runat="server" />
</asp:Content>

<asp:Content ID="cntPrincipal" runat="server" ContentPlaceHolderID="cphContenido">
 <!--Panel de error-->
    <asp:Panel ID="panError" runat="server" BorderColor="red" BorderStyle="Ridge" Visible="false" align="center" Width="75%">
      <div style="vertical-align:top">
         <asp:Image ID="imgNotifica" runat="server" ImageUrl="~/images/error.png"  />
         <asp:Label ID="lblError" runat="server" Text="" ForeColor="red"></asp:Label>
      </div>
    </asp:Panel>
    <!--Panel de notificación-->
    <asp:Panel ID="panInformation" runat="server" BorderColor="AliceBlue" BorderStyle="Ridge" Visible="false" align="center" Width="75%">
      <div style="vertical-align:top">
         <asp:Image ID="imgInforma" runat="server" ImageUrl="~/images/error_information.png"  />
         <asp:Label ID="lblInforma" runat="server" Text="" ForeColor="green"></asp:Label>
      </div>
    </asp:Panel>
    <!--Panel de restricción-->
    <asp:Panel ID="panSinAcceso" runat="server" Visible="true">
         <asp:Literal ID="ltlSinAcceso" runat="server" Text="" ></asp:Literal>
    </asp:Panel>

    <!--Panel de Información-->
    <asp:Panel ID="panInformacion" runat="server" Visible="true">
    <div id="info">
          <h3>Clientes del sistema</h3>
          <div id="options">
            <div class="left">
              <label for="buscar">Buscar</label>
              <br />
              <asp:TextBox ID="txtBuscar" runat="server" Text=""></asp:TextBox>
              <asp:LinkButton ID="lnkBuscar" runat="server" CssClass="button-small" Text="Buscar" ForeColor="brown">
              </asp:LinkButton>
           </div>
          </div>
          
              <div >
                <div>
                   <asp:DataGrid ID="dtgSeccion" runat="server" AutoGenerateColumns="false" ShowFooter="false"
                                 PagerStyle-Mode="NumericPages" Width="100%" AllowPaging="true">
                      <ItemStyle CssClass="normalrow" />
                      <AlternatingItemStyle CssClass="normalrowar" />
                      <Columns>
                         <asp:TemplateColumn HeaderText="Usuario" HeaderStyle-Font-Bold="true" HeaderStyle-Width="15%" HeaderStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                               <p>&nbsp;&nbsp;&nbsp; <%#Container.DataItem(0)%></p>
                               <asp:Label ID="lblNitCliente" runat = "server" text='<%#Container.DataItem(6)%>'  Visible="false"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderText="Nombre" HeaderStyle-Font-Bold="true" HeaderStyle-Width="40%" HeaderStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                               <p>&nbsp;&nbsp;&nbsp; <%#Container.DataItem(1)%></p>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-Width="10%" HeaderText="Estado" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign ="Center" HeaderStyle-Font-Bold="true">
                            <ItemTemplate>
                                <asp:ImageButton ID="btnCambiaEstado" CommandArgument='<%# Container.DataItem(0)%>' runat="server" ToolTip='<%# Container.DataItem(3)%>' CommandName='<%# Container.DataItem(5)%>' OnClientClick='<%# Container.DataItem(4)%>' ImageUrl='<%# Container.DataItem(2)%>'></asp:ImageButton>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                      </Columns>
                   </asp:DataGrid>
                </div>
                <div class="widget" style="width:100%; text-align:right">
                    <b class="tabdiv">Total de registros:</b> <asp:Label ID="lblTotalRegs" runat="server" Text="0" ></asp:Label>
                    | Filas <asp:DropDownList ID="ddlRegsGrid" runat="server" DataSourceID="xmlRegistros" DataValueField="value" DataTextField="text" AutoPostBack="true" ></asp:DropDownList>
                    <asp:XmlDataSource ID="xmlRegistros" runat="server" DataFile="~/xmlRegsGrid.xml" CacheDuration="Infinite"></asp:XmlDataSource>
                </div>
              </div>
            
        </div>
        <div id="sidebar">

        </div>
    </asp:Panel>
</asp:Content>

